package com.gang.music.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gang.music.common.RegisterStatistics;
import com.gang.music.system.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author gang
 * @since 2017-10-26
 */
public interface UserMapper extends BaseMapper<User> {

	List<User> selectWithSong();

	Long queryTotalUserNum();

	List<Integer> selectMenuIdsByUserId(Long userId);

	List<String> selectUserRoleCodes(Long id);

	List<Integer> selectRoleIdsByUserId(Long userId);

	Integer selectByLoginName(String loginName);

	List<String> selectPermssionsByUserId(Long userId);

	List<RegisterStatistics> selectRegisterStatisticsMap(@Param("brefDate") Date brefDate,
			@Param("currDate") Date currDate);

}